#ifndef __SCNS_TOF10120_H__
#define __SCNS_TOF10120_H__

#include "ScnsConfig.h"

#if defined(SCNS_TOF10120_ENABLE)&&SCNS_TOF10120_ENABLE==1

#include "ScnsBspTof10120.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_TOF10120_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_TOF10120_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_TOF10120_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_TOF10120_STATUS_TIME_OUT=SCNS_YING_STATUS_TIME_OUT,
}ScnsTof10120Status;

typedef struct
{
    uint16 distant;
}ScnsTof10120Result;

extern ScnsTof10120Result scnsTof10120Result[SCNS_TOF10120_MAX];

extern ScnsTof10120Status scnsTof10120Init(ScnsTof10120Enum tofN);
extern void scnsTof10120Interrupt(ScnsTof10120Enum tofN);

#endif
#endif
